// 门诊挂号api接口
import { get, post } from "@/utils/request";
import { httpHeader } from './tools/httpHeader'

// 获取患者列表
export function getPatientList() {
  let url = httpHeader() + '/his/sad/register/getPatientList'
  return get(url,null)
}

// 根据姓名和电话获取患者列表
export function getPatientListBynameAndphp(data) {
  let url = httpHeader() + '/his/sad/register/getPatientListBynameAndphp'
  return post(url,data)
}

//获取可预约的的排班信息
export function getAllSchedulingByNow(data) {
  let url =  httpHeader() + '/his/sad/register/getAllSchedulingByNow'
  return get(url,data)
}

//挂号=》稍后支付
export function FristRegisterLastPay(data) {
  let url = httpHeader() + '/his/sad/register/FristRegisterLastPay'
  return post(url,data)
}

//先付费在挂号
export function FristPayLastRegister(data) {
  let url = httpHeader() + '/his/sad/register/FristPayLastRegister'
  return post(url,data)
}



//模糊查询排班信息
export function selectsched(data) {
  let url = httpHeader() + '/his/sad/register/selectsched'
  return get(url,data)
}

//获取所有病例
export function getAllHistory(data) {
  let url = httpHeader() + '/his/sad/register/getAllHistory'
  return get(url,data)
}



